﻿using System;
using System.Collections.Generic; 
namespace Comm.Model
{
	public class OrderBook
	{
        private Books _book = new Books();
      	/// <summary>
		/// Id
        /// </summary>
        public int Id { get; set; }
		/// <summary>
		/// OrderID
        /// </summary>
        public string OrderID { get; set; }

		/// <summary>
		/// BookID
        /// </summary>
        public int BookID { get; set; }

        public Books Books 
        {
            set { _book = value; }
            get { return _book; }
        }
        
		/// <summary>
		/// Quantity
        /// </summary>
        public int Quantity { get; set; }
		/// <summary>
		/// UnitPrice
        /// </summary>
        public decimal UnitPrice { get; set; }

        //购物车明细集合（购物车里的产品集合）
        List<Books> orderbook = new List<Books>();

        /// <summary>
        /// 购物车明细集合（购物车里的产品集合）
        /// </summary>
        public List<Books> OrderBookList
        {
            get { return orderbook; }
            set { orderbook = value; }
        }



        //购物车明细集合（购物车里的产品集合）
        List<OrderBook> _orderbook = new List<OrderBook>();

        /// <summary>
        /// 购物车明细集合（购物车里的产品集合）
        /// </summary>
        public List<OrderBook> OrderBookList1
        {
            get { return _orderbook; }
            set { _orderbook = value; }
        }   
	}
}

